package cn.com.wangluotongxin.database.mysql.utils;

import cn.com.wangluotongxin.mysql.pojo.DatabaseVo;

import java.util.HashMap;
import java.util.Map;

public class SourceMySqlDatabaseUtil {

    private final static String MAP_KEY = "database";

    private static Map<String, DatabaseVo> databaseVoMap = new HashMap<>();

    public static void setDatabase(DatabaseVo vo) {
        databaseVoMap.put(MAP_KEY, vo);
    }

    public static DatabaseVo getDatabase() {
        return databaseVoMap.get(MAP_KEY);
    }

    public static void clear() {
        databaseVoMap.clear();
    }
}
